import request from '@/utils/request'

export default{
    //条件分页评论查询方法
    getCommentList(courseId,page,limit){
        return request({
            url:`/eduservice/comment/getCommentList/${courseId}/${page}/${limit}`,
            method:'get',
        })
    },

    //添加评论的方法
    addComment(comment){
        return request({
            url:`/eduservice/comment/auth/save`,
            method:'post',
            data:comment
        })
    }

}